import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from "@angular/router";

@Component({
  selector: 'app-product-detail',
  templateUrl: './product-detail.component.html',
  styleUrls: ['./product-detail.component.css']
})
export class ProductDetailComponent implements OnInit {
  productId:number;
  constructor(private activeRoute:ActivatedRoute) { }

  ngOnInit(): void {
     this.productId = this.activeRoute.snapshot.params['id']
  }

}
